package com.cetc.ga.controller;

import com.cetc.ga.config.ConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    ConfigBean config;

    @RequestMapping("/test")
    public String test() {
        return  "active:" + config.getActive() + "\n" + "user:" + config.getUser() + "\n"
                + "database:" + config.getDatabase() + "\n" + "url:" + config.getMysqlUrl();
    }
}
